# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=kirc
pkgver=0.3.2
pkgrel=0
pkgdesc="Tiny IRC client written in POSIX C99"
url="https://github.com/mcpcpc/kirc"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mcpcpc/kirc/archive/$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare
	sed -i 's/^\(install:\) all$/\1/' Makefile
}

build() {
	make PREFIX=/usr CFLAGS="$CFLAGS -std=c99"
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
12fe29a93d8f95ba60b8e77ab984fcbfee5102c2ddd5633690f24f67be376a36c0f6e0516dd311a2e8d351b249054c68150fb4ffb023822418416ac9fe8c15ff  kirc-0.3.2.tar.gz
"
